export function getItem (key) {
  if (sessionStorage[key]) {
    return JSON.parse(sessionStorage[key])
  }
  return null
}

export function setItem (key, value) {
  sessionStorage[key] = JSON.stringify(value)
}

export function remove (key) {
  sessionStorage.removeItem(key)
}

export function clear () {
  sessionStorage.clear()
}
